#include "LT.h"

void Test(LT* plist)
{
	PushFront(plist, 1);
	PushFront(plist, 2);
	PushFront(plist, 3);
	PushFront(plist, 4);
	Print(plist);

	PushBack(plist, 1);
	PushBack(plist, 2);
	PushBack(plist, 3);
	PushBack(plist, 4);
	Print(plist);

	/*LT* pos = LTFind(plist, 4);
	Destroy(plist, pos);
	Print(plist);*/

	PopFront(plist);
	PopFront(plist);
	PopFront(plist);
	PopFront(plist);
	Print(plist);

	PopBack(plist);
	PopBack(plist);
	PopBack(plist);
	Print(plist);

	LTnull(plist);
	Print(plist);
}

int main()
{
	LT* plist = LTInit();
	Test(plist);
	free(plist);
	return 0;
}